import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		userinfo: uni.getStorageSync('userinfo'),
		token: uni.getStorageSync('token'),
		city:uni.getStorageSync("city"),
		showAreaType:false,
		userId:'',
		provinceId:'',
		tenantCode:uni.getStorageSync("tenantCode")
	},
	mutations: {
		setUserinfo(state, userinfo){
			state.userinfo = userinfo
		},
		setCity(state,city){
			state.city = city
		},
		setShowAreaType(state,showAreaType){
			state.showAreaType = showAreaType
		},
		setShowuSerId(state,userId){
			state.userId = userId
		},
		setprovinceId(state,provinceId){
			state.provinceId = provinceId
		},
		setTenantCode(state,tenantCode){
			state.tenantCode = tenantCode
		}
	},
	actions: {
		
	}
})
export default store